<?php
require_once REPOMATH_ROOT . '/util/DBUtil.class.php';

class Course {
	var $db;

	public function Course() {
		$this->db = new DBUtil();
	}

	public function getCourseByLevel($level) {
		$levelLo = intval($level) * 1000;
		$levelHi = (intval($level) + 1) * 1000;
		$rows = $this->db->ExQueryGetArray("select * from tbl_Course where Co_number between $levelLo and $levelHi");
		return $rows;
	}

}
?>